<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>数据绑定</title>
</head>
<body>

<p></p>
<p></p>
<p></p>

<script src="../node_modules/d3/build/d3.min.js"></script>
<script>
  let arr = ['apple', 'banana', 'orange'];
  let pData = d3.selectAll('p').data(arr);
  let p = pData.text(function (text, index) {
    return text;
  });
  // console.log(p.__proto__);
</script>

</body>
</html>